<?php

$res= $page->getPageResources();
$pageRes = $page->getpResource();
$resourcesCount   = count($res); $imagediv="";$audiodiv="";$videodiv="";$docdiv="";$othersdiv="";
if($resourcesCount>0)
    {
       
        
       for($i=0;$i<$resourcesCount;$i++)
        {
             switch($res[$i]->category){
                 case $pageRes->IMAGES:{
                     $imagediv.="<img src='".$HOME_URL."resources/image.php?im=".$res[$i]->resourceurl."&s=150'  title='".$res[$i]->resoucedesc."'  alt='".$res[$i]->resoucedesc."' />";break;
                 }
           }

   }

   }
?>
